package org.cncitrus.data.common;

import java.io.UnsupportedEncodingException;

public class Util {
	// 对于传进来的值进行转码以及string数组转为一个字符串
	public static String Convert(String[] str) throws UnsupportedEncodingException {
		String s = "'";
		int n = str.length;
		for (int i = 0; i < n - 1; i++)
			s += str[i] + "','";
		s += str[n - 1] + "'";
		byte[] tmpbyte = s.getBytes("ISO8859_1");
		// byte[] tmpbyte= s.getBytes();
		return new String(tmpbyte, "UTF-8");
		// return new String(tmpbyte);
	}
}
